<!--  -->
<template>
  <div class="operate-pdtableattr-list dffr">
    <el-button
      type="primary"
      @click="create"
    >新建属性</el-button>
    <el-button
      type="success"
      @click="reset"
    >刷新</el-button>
    <!-- 添加、编辑下载属性 -->
    <SavePdtableAttr ref="savePdtableAttr" :resetData="resetData" :system="system" />
  </div>
</template>

<script>
import SavePdtableAttr from '@/components/main/user/system/pdtableAttribute/pdtableattributessetup/SavePdtableAttr.vue'
export default {
  props: {
    resetData: {
      type: Function
    },
    system: {
      type: Object
    }
  },
  data () {
    return {
    }
  },
  methods: {
    create () {
      this.$refs['savePdtableAttr'].show('新建属性', { id: 0 })
    },
    reset () {
      this.resetData()
    }
  },
  components: {
    SavePdtableAttr
  }
}

</script>
